package com.xsd.vistor.kpiDemo;

/**
 * @Description: 关注工程师的kpi和经理的kpi以及新产品数量
 * @Author: zhoufuzong
 * @Created: 2021-03-11 20:59:38
 * @Version: 1.1.0
 */

public class CEO extends Vistor {
    @Override
    public void visit(Manager engineer) {
        System.out.println(engineer.name+":kpi-"+engineer.kpi+"\t 新产品数量："+engineer.getProducts());

    }

    @Override
    public void visit(Engineer engineer) {
        System.out.println(engineer.name+":kpi-"+engineer.kpi);
    }
}
